var ding1 =document.getElementsByClassName('ding1')[0];
var a = document.getElementById('a');
var bei = document.getElementById('bei');
a.onclick =function (){
	ding1.style.display = "block";
	bei.style.display = "block";
}

ding1.onclick = function(){
	ding1.style.display = "none";
	bei.style.display = "none";
}



$.init();
// 添加'refresh'监听器
$(document).on('refresh', '.pull-to-refresh-content',function(e) {
    // 模拟2s的加载过程
    setTimeout(function() {
        var cardNumber = $(e.target).find('.card').length + 1;
        var cardHTML = '<li class="list">'+
					        '<a href="#" class="item-link item-content">'+
					            '<div class="item-media"><img src="images/zhaoliyin.jpg" ></div>'+
					            '<div class="item-inner">'+
						            '<div class="item-title-row">'+
						             '<div class="item-title red">赵丽颖</div>'+
						            '</div>'+
						            '<div class="item-subtitle small">邀请大家一起看《花千骨》。</div>'+
					            '</div>'+
					        '</a>'+
					        '<span class="time">'+
					        	'00：00'+
					        '</span>'+
					       ' <span class="ci">9</span>'+
				        '</li> ' +
				        '<li class="list">'+
					        '<a href="#" class="item-link item-content">'+
					            '<div class="item-media"><img src="images/mayun.jpg" ></div>'+
					            '<div class="item-inner">'+
						            '<div class="item-title-row">'+
						             '<div class="item-title red">马云</div>'+
						            '</div>'+
						            '<div class="item-subtitle small">双十一3分1秒突破100亿，这只是一个数字而已</div>'+
					            '</div>'+
					        '</a>'+
					        '<span class="time">'+
					        	'11：11'+
					        '</span>'+
					       ' <span class="ci">2</span>'+
				        '</li> ' ;
                      
                      
        $(e.target).find('.card-container').prepend(cardHTML);
        // 加载完毕需要重置
        $.pullToRefreshDone('.pull-to-refresh-content');
    }, 2000);
});


